package com.cssw.fyzb.core.dao.acct;

import com.cssw.fyzb.core.model.dodb.RnbExchangeFDef;
import com.cssw.fyzb.core.model.dodb.RnbExchangeGzDef;
import com.cssw.fyzb.core.model.dodb.YExchangeFDef;
import com.ydn.dbframe.plugin.activerecord.Page;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Author zhouxu
 * @create 2020-12-21 16:04
 */
public interface AcctExtDao {
    // TODO 加缓存
    List<RnbExchangeFDef> listRnbExchangeFDef();

    RnbExchangeFDef findRnbExchangeFDefById(Long rfId);

     Page<RnbExchangeFDef> getAllDef(Map param, int page, int limit);

     void delete(Long yfId,Long userId);

    void update(Long yfId, BigDecimal rnb, BigDecimal fCoin, Long userId);

    void  add( BigDecimal rnb, BigDecimal fCoin, Long userId);

    List<RnbExchangeGzDef> listRnbExchangeGzDef();

    RnbExchangeGzDef findRnbExchangeGzDefById(Long rgId);
}
